package constructor.flyweight;

public class ConcurrentWebSite extends WebSite {

    private String type;

    public ConcurrentWebSite(String type) {
        this.type = type;
    }

    @Override
    public void use(User user) {
        System.out.println("user: " + user.getName() + "正在使用type=" + type + "类型的网站");
    }
}
